/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter.task;

public interface ITask extends Runnable {
    int STATUS_NEW = 0;
    int STATUS_WAIT = 1;
    int STATUS_READY = 2;
    int STATUS_RUNNING = 3;
    int STATUS_OVER = 4;
    int STATUS_CANCEL = 5;

    void start();

    void stop();

    int getStatus();

    void setStatus(int status);
}
